<template>
  <div>
    <el-table border :data="tableData" stripe style="width: 100%">
      <el-table-column prop="name" label="手机品牌" width="180">
      </el-table-column>
      <el-table-column prop="todayBuy" label="日销售量" width="180">
      </el-table-column>
      <el-table-column prop="monthBuy" label="月销售量"> </el-table-column>
      <el-table-column prop="totalBuy" label="总销售量"> </el-table-column>
      <el-table-column label="操作"
        ><el-button size="mini" type="primary" @click="text">编辑</el-button
        ><el-button size="mini" type="danger" @click="del"
          >删除</el-button
        ></el-table-column
      >
    </el-table>
  </div>
</template>

<script>
export default {
  name: "CommonMall",
  data() {
    return {
      tableData: [
        {
          name: "oppo",
          todayBuy: 500,
          monthBuy: 3500,
          totalBuy: 22000,
        },
        {
          name: "vivo",
          todayBuy: 300,
          monthBuy: 2200,
          totalBuy: 24000,
        },
        {
          name: "苹果",
          todayBuy: 800,
          monthBuy: 4500,
          totalBuy: 65000,
        },
        {
          name: "小米",
          todayBuy: 1200,
          monthBuy: 6500,
          totalBuy: 45000,
        },
        {
          name: "三星",
          todayBuy: 300,
          monthBuy: 2000,
          totalBuy: 34000,
        },
        {
          name: "魅族",
          todayBuy: 350,
          monthBuy: 3000,
          totalBuy: 22000,
        },
      ],
    };
  },
  methods: {
    text() {},
    del() {
        this.tableData.remove()
    },
  },
};
</script>

<style>
</style>